'use strict'
let gateHandle = require('./gateHandle')

//试炼之所结束信息
exports.trialInfo = function(pId, msg) {
  gateHandle.callRemoteFunc('pushMsgToPlayer',{
    data: msg,
    route: 'trialInfo',
    pId: pId
  })
}

//有新邮件
exports.newMail = function(pId, content) {
  gateHandle.callRemoteFunc('pushMsgToPlayer', {
    data: {
      content: content
    },
    pId: pId,
    route: 'newMail'
  })
}

//野外boss被击杀
exports.fieldBossKill = function(sceneId, msg) {
    gateHandle.callRemoteFunc('pushMsgsToScene', {
      data: msg,
      route: 'fieldBossKill',
      sceneId: sceneId
    })
}

//野外boss出现
exports.noticeFieldBoss = function(sceneId, msg) {
  gateHandle.callRemoteFunc('pushMsgsToScene', {
    data: msg,
    route: 'noticeFieldBoss',
    sceneId: sceneId
  })
}

//野外boss伤害推送
exports.fieldBossDamageRank = function(sceneId, msg) {
  gateHandle.callRemoteFunc('pushMsgsToScene', {
    data: msg,
    route: 'fieldBossDamageRank',
    sceneId: sceneId
  })
}

//竞技场挑战
exports.arenaChallenge = function(pId, msg) {
  gateHandle.callRemoteFunc('pushMsgToPlayer', {
    data: msg,
    route: 'arenaChallenge',
    pId:pId
  })
}

//竞技场挑战
exports.lvlup = function(pId, msg) {
  gateHandle.callRemoteFunc('pushMsgToPlayer', {
    data: msg,
    route: 'lvlup',
    pId:pId
  })
}
